﻿#ifndef WIDGET4_H
#define WIDGET4_H

#include <QWidget>

namespace Ui {
class Widget4;
}

class Widget4 : public QWidget
{
    Q_OBJECT

public:
    explicit Widget4(QWidget *parent = nullptr);
    ~Widget4();

    void setShowData(int index);
signals:
    void SignalWidget4Next(QPair<QString,QString> record);
private slots:
    void slot_pageChanged(int index);

    void SlotRadioBtnToggle(bool checked);
private:
    void clearLayout(QLayout* layout);

    QString ProcessingText(const QFontMetrics& font, const QString& text, int nLabelSize);
private:
    Ui::Widget4 *ui;
    int m_perpageCnt = 5;
    QList<QPair<QString,QString>> m_pshowDatasList;
};

#endif // WIDGET4_H
